Optimal. Leaf size=68 \[ \frac {\log (x) (a+b x)}{a \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {(a+b x) \log (a+b x)}{a \sqrt {a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {646, 36, 29, 31} \[ \frac {\log (x) (a+b x)}{a \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {(a+b x) \log (a+b x)}{a \sqrt {a^2+2 a b x+b^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 646
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {a^2+2 a b x+b^2 x^2}} \, dx &=\frac {\left (a b+b^2 x\right ) \int \frac {1}{x \left (a b+b^2 x\right )} \, dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {\left (a b+b^2 x\right ) \int \frac {1}{x} \, dx}{a b \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {\left (b \left (a b+b^2 x\right )\right ) \int \frac {1}{a b+b^2 x} \, dx}{a \sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {(a+b x) \log (x)}{a \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {(a+b x) \log (a+b x)}{a \sqrt {a^2+2 a b x+b^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 31, normalized size = 0.46 \[ \frac {(a+b x) (\log (x)-\log (a+b x))}{a \sqrt {(a+b x)^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.72, size = 16, normalized size = 0.24 \[ -\frac {\log \left (b x + a\right ) - \log \relax (x)}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 28, normalized size = 0.41 \[ -{\left (\frac {\log \left ({\left | b x + a \right |}\right )}{a} - \frac {\log \left ({\left | x \right |}\right )}{a}\right )} \mathrm {sgn}\left (b x + a\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 31, normalized size = 0.46 \[ -\frac {\left (b x +a \right ) \left (-\ln \relax (x )+\ln \left (b x +a \right )\right )}{\sqrt {\left (b x +a \right )^{2}}\, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.81, size = 38, normalized size = 0.56 \[ -\frac {\left (-1\right )^{2 \, a b x + 2 \, a^{2}} \log \left (\frac {2 \, a b x}{{\left | x \right |}} + \frac {2 \, a^{2}}{{\left | x \right |}}\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.18, size = 46, normalized size = 0.68 \[ -\frac {\ln \left (a\,b+\frac {a^2}{x}+\frac {\sqrt {a^2}\,\sqrt {a^2+2\,a\,b\,x+b^2\,x^2}}{x}\right )}{\sqrt {a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 10, normalized size = 0.15 \[ \frac {\log {\relax (x )} - \log {\left (\frac {a}{b} + x \right )}}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________